import { createRouter, createWebHistory,RouteRecordRaw} from "vue-router";

const routes: Array<RouteRecordRaw> = [ 
     {
          path: "/",
        name: "Regist",
        component: () => import("../components/Regist.vue")
    }
    ,
    {
        path: "/Login",
      name: "Login",
      component: () => import("../components/Login.vue")
    },
    {
        path: "/UserLogin",
      name: "UserLogin",
      component: () => import("../components/UserLogin.vue")
    },
    /////////////////////////////借款模块
    {
        path: "/LoanLogin",
      name: "LoanLogin",
      component: () => import("../LoanView/LoanLogin.vue")
    },
    {
        path: "/AddLoan",
      name: "AddLoan",
      component: () => import("../LoanView/AddLoan.vue")
    }
    ,   {
        path: "/ShowLoan",
      name: "ShowLoan",
      component: () => import("../LoanView/ShowLoan.vue")
    },
    {
      path: "/AdminLoan",
    name: "AdminLoan",
    component: () => import("../LoanView/AdminLoan.vue")
  },
  {
    path: "/ADDLMoney",
  name: "ADDLMoney",
  component: () => import("../LMoney/ADDLMoney.vue")
  },
  {
    path: "/ShowLMoney",
  name: "ShowLMoney",
  component: () => import("../LMoney/ShowLMoney.vue")
  },
  {
    path: "/AdminSolt",
  name: "AdminSolt",
  component: () => import("../LoanView/AdminSolt.vue")
  },
]


const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router; // 导出路由